package com.capacitydorm.server.service;

import com.capacitydorm.server.dao.LoginMapper;
import com.capacitydorm.server.domain.DataUser;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Transactional
@Service
public class LoginService {
    @Resource
    private LoginMapper loginMapper;


    public List<DataUser> login(DataUser user) {
        List<DataUser> select = loginMapper.select(user);
        return select;
    }
}
